package top.mengchaob.fileserver.netty.table;

import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;

/**
 * @title：
 * @author: mengchaob
 * @date: 2021年05月12日 14:26
 * @description: 文件类别
 */
@Entity
@Table(name = "file_lb_info")
public class FileLBDo {
    @Id
    @Column(length = 64)
    private String lbId;
    @Column(length = 32)
    private String lbCode;
    @Column(length = 128)
    private String lbName;
    @Column(length = 20)//yyyy-mm-dd hh24:mi:ss
    private String createTime;
    @Column(length = 64)
    private String pid;
    @Transient
    private List<FileLBDo> fileLBDos;
    /**
     * 部署功能，文件信息下拉树用到，节点存在fileLbDos则不会存在fileDos
     */
    @Transient
    private List<FileDo> fileDos;

    public String getLbId() {
        return lbId;
    }

    public void setLbId(String lbId) {
        this.lbId = lbId;
    }

    public String getLbCode() {
        return lbCode;
    }

    public void setLbCode(String lbCode) {
        this.lbCode = lbCode;
    }

    public String getLbName() {
        return lbName;
    }

    public void setLbName(String lbName) {
        this.lbName = lbName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public List<FileLBDo> getFileLBDos() {
        return fileLBDos;
    }

    public void setFileLBDos(List<FileLBDo> fileLBDos) {
        this.fileLBDos = fileLBDos;
    }

    public List<FileDo> getFileDos() {
        return fileDos;
    }

    public void setFileDos(List<FileDo> fileDos) {
        this.fileDos = fileDos;
    }
}
